package com.csht.mapper;

import java.util.List;
import java.util.Map;

import com.csht.model.CshtShelves;
import com.csht.vo.my.CshtShelvesVo;

public interface CshtShelvesMapper {
    
	/**
	 * 根据用户id查找已下架的商品数量
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public Integer getShelvesNumberByUserId(Integer userId) throws Exception;
	
	/**
	 * 根据用户id查找已下架的商品
	 * @param res
	 * @return
	 * @throws Exception
	 */
	public List<CshtShelvesVo> getShelvesByUserId(Map<String, Integer> res) throws Exception;
	
	/**
	 * 插入下架商品记录
	 * @param cshtShelves
	 * @throws Exception
	 */
	public void insertShelvesGoods(CshtShelves cshtShelves) throws Exception;
	
	/**
	 * 根据id查找到原商品id
	 * @param shelvesId
	 * @return
	 * @throws Exception
	 */
	public Integer selectShelvesToGoodsIdById(Integer shelvesId) throws Exception;
	
	/**
	 * 根据id删除记录
	 * @param shelvesId
	 * @throws Exception
	 */
	public void deleteShelvesGoodsById(Integer shelvesId) throws Exception;
	
}